let checkedCacheData = {}

try {
  checkedCacheData = uni.getStorageSync('checkedCacheData')
} catch (e) {}

const checkedCache = {
  state: {
    checkedCache: checkedCacheData ? checkedCacheData : {},
  },
  mutations: {
    SET_CHECKEDCACHE: (state, checkedCache) => {
      state.checkedCache = checkedCache
      uni.setStorageSync('checkedCacheData', checkedCache)
    },
  },
}

export default checkedCache
